﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using CodeCamp.Infrastructure.Extensions;

namespace CodeCamp.Models.Home
{
    public class ContactDetailViewModel
    {
        [Required]
        [MaxLength(60)]
        public string Subject { get; set; }

        [Required]
        [MaxLength(60)]
        public string Name { get; set; }
                                            
        [Required]
        [MaxLength(128)]
        [Email(ErrorMessage="Not a valid email address")]
        public string EmailAddress { get; set; }

        [Required]
        [MaxLength(1000)]
        public string Message { get; set; }
    }
}